#include <gtest/gtest.h>

#include <utility>
#include <string>

TEST(PairTest, testConstKey){


  //const std::string const_str("hello");
  //const_cast<std::string>(const_str) = "world";// pointer, ref,pointer-to-data-member


  std::string h = "hello";
  std::string w = "world";
  std::pair<const std::string, std::string> cp = std::make_pair(std::move(h), std::move(w));

  ASSERT_EQ(5ull, cp.first.size());
  ASSERT_EQ(0ull, h.size());
  ASSERT_EQ(5ull, cp.second.size());
  ASSERT_EQ(0ull, w.size());
}
